package com.ddwl.admin.feign;

import com.ddwl.admin.bo.DingTalkBo;
import com.ddwl.admin.vo.DingTalkRestVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Fu Zhaohui
 * @version 1.0.0
 * @date 2021/7/5 21:05
 */
@FeignClient(name = "DingTalkApi", url = "https://api.dingtalk.com/robot")
public interface DingTalkApi {

    @PostMapping("/send")
    DingTalkRestVo send(@RequestParam("access_token") String access_token, @RequestBody DingTalkBo bo);
}
